import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// 应用全局，全局配置

// 引入pinia
import { createPinia } from "pinia";
import { mainData } from '@/stores/index';
let pinia = createPinia()

// 引入vue-router
import Router from "@/router"
// 引入naive ui
import naive from "naive-ui";

// 引入naive ui的字体
// 通用字体
import "vfonts/Lato.css";
// 等宽字体
import "vfonts/FiraCode.css";

// mainData().loadUserAuthorityFromStorage();

createApp(App)
.use(pinia)
  .use(Router)
  .use(naive)
  .mount('#app')
